import request from '@/utils/request'

// 查询异常代码管理列表
export function listCode(query) {
  return request({
    url: '/business/exception-code/list',
    method: 'get',
    params: query
  })
}

// 查询异常代码管理详细
export function getCode(id) {
  return request({
    url: '/business/exception-code/query/' + id,
    method: 'get'
  })
}

// 新增异常代码管理
export function addCode(data) {
  return request({
    url: '/business/exception-code/add',
    method: 'post',
    data: data
  })
}

// 修改异常代码管理
export function updateCode(data) {
  return request({
    url: '/business/exception-code/update',
    method: 'post',
    data: data
  })
}

// 删除异常代码管理
export function delCode(id) {
  return request({
    url: '/business/exception-code/delete/' + id,
    method: 'get'
  })
}

//查询异常代码数据列表
export function listCodeData(query) {
  return request({
    url: '/business/exception-code/codeList',
    method: 'get',
  })
}
